mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 01:37:44 +00:00
doc: change the parameter of virtio-net
Remove device name requirement for “tap” and "vmnet", change the parameter format like: "-s 4,virtio-net,tap/vmnet=dev_name". change mac_seed to virtio-net sub-parameter As a parameter of acrn-dm,the mac_seed is only used for virtio-net. So this patch change it to the sub-parameter of virtio-net. The final format is: -s 4,virtio-net,tap/vmnet=dev_name,mac_seed=XXXX Tracked-On: #6690 Signed-off-by: Chenli Wei chenli.wei@linux.intel.com
This commit is contained in:
@@ -273,7 +273,7 @@ Bring Up User VM (L2 Guest)
|
||||
mem_size=1024M
|
||||
acrn-dm -m $mem_size -s 0:0,hostbridge \
|
||||
-s 3,virtio-blk,~/UserVM.img \
|
||||
-s 4,virtio-net,tap0 \
|
||||
-s 4,virtio-net,tap=tap0 \
|
||||
--cpu_affinity 1 \
|
||||
-s 5,virtio-console,@stdio:stdio_port \
|
||||
--ovmf ~/OVMF.fd \
|
||||
|
@@ -139,7 +139,7 @@ Linux-based post-launched VMs (VM1 and VM2).
|
||||
-s 5,virtio-console,@stdio:stdio_port \
|
||||
-s 6,virtio-hyper_dmabuf \
|
||||
-s 3,virtio-blk,/home/acrn/UserVM1.img \
|
||||
-s 4,virtio-net,tap0 \
|
||||
-s 4,virtio-net,tap=tap0 \
|
||||
-s 6,ivshmem,dm:/test,2 \
|
||||
-s 7,virtio-rnd \
|
||||
--ovmf /usr/share/acrn/bios/OVMF.fd \
|
||||
@@ -153,7 +153,7 @@ Linux-based post-launched VMs (VM1 and VM2).
|
||||
|
||||
acrn-dm -m $mem_size -s 0:0,hostbridge \
|
||||
-s 3,virtio-blk,/home/acrn/UserVM2.img \
|
||||
-s 4,virtio-net,tap0 \
|
||||
-s 4,virtio-net,tap=tap0 \
|
||||
-s 5,ivshmem,dm:/test,2 \
|
||||
--ovmf /usr/share/acrn/bios/OVMF.fd \
|
||||
$vm_name
|
||||
@@ -220,7 +220,7 @@ Linux-based VMs (VM0 is a pre-launched VM and VM2 is a post-launched VM).
|
||||
|
||||
acrn-dm -m $mem_size -s 0:0,hostbridge \
|
||||
-s 3,virtio-blk,/home/acrn/UserVM2.img \
|
||||
-s 4,virtio-net,tap0 \
|
||||
-s 4,virtio-net,tap=tap0 \
|
||||
-s 5,ivshmem,hv:/shm_region_0,2 \
|
||||
--ovmf /usr/share/acrn/bios/OVMF.fd \
|
||||
$vm_name
|
||||
|
@@ -43,7 +43,7 @@ vm_name=vm$1
|
||||
mac_seed=${mac:9:8}-${vm_name}
|
||||
|
||||
# create a unique tap device for each VM
|
||||
tap=tap_$6
|
||||
tap=$6
|
||||
tap_exist=$(ip a | grep "$tap" | awk '{print $1}')
|
||||
if [ "$tap_exist"x != "x" ]; then
|
||||
echo "tap device existed, reuse $tap"
|
||||
@@ -135,11 +135,10 @@ acrn-dm -m $mem_size -c $2 -s 0:0,hostbridge -s 1:0,lpc -l com1,stdio \
|
||||
-s 6,virtio-hyper_dmabuf \
|
||||
-s 8,wdt-i6300esb \
|
||||
-s 3,virtio-blk,/data/$5/$5.img \
|
||||
-s 4,virtio-net,$tap \
|
||||
-s 4,virtio-net,tap=$tap,mac_seed=$mac_seed \
|
||||
-s 7,xhci,1-1:1-2:1-3:2-1:2-2:2-3:cap=apl \
|
||||
-s 9,passthru,0/15/1 \
|
||||
$boot_cse_option \
|
||||
--mac_seed $mac_seed \
|
||||
$intr_storm_monitor \
|
||||
$boot_ipu_option \
|
||||
-B "root=/dev/vda2 rw rootwait maxcpus=$2 nohpet console=hvc0 \
|
||||
@@ -162,7 +161,7 @@ vm_name=vm$1
|
||||
mac_seed=${mac:9:8}-${vm_name}
|
||||
|
||||
# create a unique tap device for each VM
|
||||
tap=tap_$6
|
||||
tap=$6
|
||||
tap_exist=$(ip a | grep "$tap" | awk '{print $1}')
|
||||
if [ "$tap_exist"x != "x" ]; then
|
||||
echo "tap device existed, reuse $tap"
|
||||
@@ -313,7 +312,7 @@ ACRN project
|
||||
intr_storm_monitor="--intr_monitor 10000,10,1,100"
|
||||
|
||||
acrn-dm -m $mem_size -c $2 -s 0:0,hostbridge -s 1:0,lpc -l com1,stdio $npk_virt\
|
||||
-s 9,virtio-net,$tap \
|
||||
-s 9,virtio-net,tap=$tap,mac_seed=$mac_seed \
|
||||
-s 3,virtio-blk,/data/$5/$5.img \
|
||||
-s 7,xhci,1-1:1-2:1-3:2-1:2-2:2-3:cap=apl \
|
||||
-s 8,passthru,0/15/1 \
|
||||
@@ -322,7 +321,6 @@ intr_storm_monitor="--intr_monitor 10000,10,1,100"
|
||||
-s 11,wdt-i6300esb \
|
||||
$boot_audio_option \
|
||||
$boot_cse_option \
|
||||
--mac_seed $mac_seed \
|
||||
-s 27,passthru,0/1b/0 \
|
||||
-s 24,passthru,0/18/0 \
|
||||
-s 18,passthru,3/0/0,keep_gsi \
|
||||
|
@@ -105,7 +105,7 @@ Prepare the Script to Create an Image
|
||||
mem_size=4096M
|
||||
acrn-dm -m $mem_size -s 0:0,hostbridge -s 1:0,lpc -l com1,stdio \
|
||||
-s 2,passthru,0/2/0 \
|
||||
-s 8,virtio-net,tap0 \
|
||||
-s 8,virtio-net,tap=tap0 \
|
||||
-s 4,virtio-blk,/home/acrn/work/win10-ltsc.img
|
||||
-s 5,ahci,cd:/home/acrn/work/Windows10.iso \
|
||||
-s 6,ahci,cd:/home/acrn/work/winvirtio.iso \
|
||||
@@ -266,7 +266,7 @@ Explanation for acrn-dm Popular Command Lines
|
||||
This is GVT-d to passthrough the VGA controller to Windows.
|
||||
You may need to change 0/2/0 to match the bdf of the VGA controller on your platform.
|
||||
|
||||
* ``-s 8,virtio-net,tap0``:
|
||||
* ``-s 8,virtio-net,tap=tap0``:
|
||||
This is for the network virtualization.
|
||||
|
||||
* ``-s 3,virtio-input,/dev/input/event4``:
|
||||
|
Reference in New Issue
Block a user