Skip to content

Commit 47bb206

Browse files
committed
Added network configuration
1 parent 0725f5f commit 47bb206

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

boot

+3-1
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ fi
125125

126126
qemu_args=""
127127
append_args=""
128+
netdev_args="user,id=network0 -device e1000,netdev=network0"
128129

129130
if [ "${boot_into_initrd_shell}" = "y" ]; then
130131
qemu_args="-initrd ${basedir}/initramfs.cpio.gz"
@@ -136,4 +137,5 @@ fi
136137

137138
${qemu} -m ${memory} -kernel ${bzImage} ${qemu_args} -nographic \
138139
-append "${append_args} rw console=ttyS0 earlyprintk=vga nokaslr selinux=0 audit=0 debug" \
139-
-enable-kvm ${debug_args}
140+
-enable-kvm ${debug_args} \
141+
-netdev ${netdev_args}

0 commit comments

Comments
 (0)