mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-08 12:19:06 +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:
@@ -110,7 +110,7 @@ Here's an example showing how to run a VM with:
|
||||
-s 1:0,lpc -l com1,stdio \
|
||||
-s 5,virtio-console,@pty:pty_port \
|
||||
-s 3,virtio-blk,/home/acrn/UserVM.img \
|
||||
-s 4,virtio-net,tap_LaaG \
|
||||
-s 4,virtio-net,tap=LaaG \
|
||||
--acpidev_pt MSFT0101,00 \
|
||||
--intr_monitor 10000,10,1,100 \
|
||||
-B "root=/dev/vda2 rw rootwait maxcpus=3 nohpet console=hvc0 \
|
||||
@@ -773,7 +773,7 @@ example:
|
||||
-s 1:0,lpc -l com1,stdio \
|
||||
-s 5,virtio-console,@pty:pty_port \
|
||||
-s 3,virtio-blk,/home/acrn/UserVM.img \
|
||||
-s 4,virtio-net,tap_LaaG \
|
||||
-s 4,virtio-net,tap=LaaG \
|
||||
-B "root=/dev/vda2 rw rootwait maxcpus=3 nohpet console=hvc0 \
|
||||
console=ttyS0 no_timer_check ignore_loglevel log_buf_len=16M \
|
||||
consoleblank=0 tsc=reliable \
|
||||
|
@@ -21,11 +21,10 @@ command line input. Using this command line, as an example::
|
||||
-s 5,virtio-console,@stdio:stdio_port \
|
||||
-s 6,virtio-hyper_dmabuf \
|
||||
-s 3,virtio-blk,/home/acrn/UserVM.img \
|
||||
-s 4,virtio-net,tap0 \
|
||||
-s 4,virtio-net,tap=tap0,mac_seed=$mac_seed \
|
||||
-s 7,virtio-rnd \
|
||||
--ovmf /usr/share/acrn/bios/OVMF.fd \
|
||||
$logger_setting \
|
||||
--mac_seed $mac_seed \
|
||||
$vm_name
|
||||
|
||||
the bus hierarchy would be:
|
||||
|
@@ -436,7 +436,7 @@ passthrough and enables PTM on it:
|
||||
|
||||
acrn-dm -m $mem_size -s 0:0,hostbridge \
|
||||
-s 3,virtio-blk,user-vm-test.img \
|
||||
-s 4,virtio-net,tap0 \
|
||||
-s 4,virtio-net,tap=tap0 \
|
||||
-s 5,virtio-console,@stdio:stdio_port \
|
||||
-s 6,passthru,a9/00/0,enable_ptm \
|
||||
--ovmf /usr/share/acrn/bios/OVMF.fd
|
||||
@@ -506,7 +506,7 @@ If supported, follow these steps to enable PTM in the post-launched VM:
|
||||
|
||||
$ acrn-dm -m $mem_size -s 0:0,hostbridge \
|
||||
-s 3,virtio-blk,user-vm-test.img \
|
||||
-s 4,virtio-net,tap0 \
|
||||
-s 4,virtio-net,tap=tap0 \
|
||||
-s 5,virtio-console,@stdio:stdio_port \
|
||||
-s 6,passthru,a9/00/0,enable_ptm \
|
||||
--ovmf /usr/share/acrn/bios/OVMF.fd \
|
||||
|
@@ -484,7 +484,7 @@ optional):
|
||||
|
||||
.. code-block:: none
|
||||
|
||||
-s 4,virtio-net,<tap_name>,[mac=<XX:XX:XX:XX:XX:XX>]
|
||||
-s 4,virtio-net,tap=<name>,[mac=<XX:XX:XX:XX:XX:XX>]
|
||||
|
||||
When the User VM is launched, run ``ifconfig`` to check the network. enp0s4r
|
||||
is the virtual NIC created by acrn-dm:
|
||||
@@ -525,15 +525,14 @@ Create a MacVTap interface in the Service VM as shown here:
|
||||
sudo ip link add link eth0 name macvtap0 type macvtap
|
||||
|
||||
where ``eth0`` is the name of the physical network interface, and
|
||||
``macvtap0`` is the name of the MacVTap interface being created. (Make
|
||||
sure the MacVTap interface name includes the keyword ``tap``.)
|
||||
``macvtap0`` is the name of the MacVTap interface being created.
|
||||
|
||||
Once the MacVTap interface is created, the User VM can be launched by adding
|
||||
a PCI slot to the Device Model acrn-dm as shown below.
|
||||
|
||||
.. code-block:: none
|
||||
|
||||
-s 4,virtio-net,<macvtap_name>,[mac=<XX:XX:XX:XX:XX:XX>]
|
||||
-s 4,virtio-net,tap=macvtap0,[mac=<XX:XX:XX:XX:XX:XX>]
|
||||
|
||||
Performance Estimation
|
||||
======================
|
||||
|
Reference in New Issue
Block a user