Skip to content

Commit 2342271

Browse files
Wei Liuwenlingz
authored andcommitted
acrn-config: add 'tap_' perfix for virtio-net
UOS would be failed to get ip address, add 'tap_' perfix for virtio-net name setting. Tracked-On: #4255 Signed-off-by: Wei Liu <weix.w.liu@intel.com> Acked-by: Victor Sun <victor.sun@intel.com>
1 parent 6383394 commit 2342271

File tree

1 file changed

+2
-2
lines changed
  • misc/acrn-config/launch_config

1 file changed

+2
-2
lines changed

misc/acrn-config/launch_config/com.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def tap_uos_net(names, virt_io, vmid, config):
6060
net_name = net
6161
if ',' in net:
6262
net_name = net.split(',')[0]
63-
print("tap_net {}".format(net_name), file=config)
63+
print("tap_net tap_{}".format(net_name), file=config)
6464

6565
print("#check if the vm is running or not", file=config)
6666
print("vm_ps=$(pgrep -a -f acrn-dm)", file=config)
@@ -465,7 +465,7 @@ def virtio_args_set(dm, virt_io, vmid, config):
465465
net_name = net
466466
if ',' in net:
467467
net_name = net.split(',')[0]
468-
print(" -s {},virtio-net,{} \\".format(launch_cfg_lib.virtual_dev_slot("virtio-net{}".format(net)), net_name), file=config)
468+
print(" -s {},virtio-net,tap_{} \\".format(launch_cfg_lib.virtual_dev_slot("virtio-net{}".format(net)), net_name), file=config)
469469

470470
# virtio-console set, the value type is a string
471471
if virt_io['console'][vmid]:

0 commit comments

Comments
 (0)