mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-22 13:34:07 +03:00
febddd4b01
Libvirt(since 9.4.0) allows to control this attribute for virtio-{mem,pmem}. Now add it into virt-install. Example: virt-install \ --name test \ --os-variant opensusetumbleweed \ --cdrom /isos/openSUSE-Tumbleweed-DVD-x86_64-Current.iso \ --disk /vms/tw/disk0.qcow2 \ --vcpu 2 \ --cpu cell0.cpus=0,cell0.memory=4194304,\ cell1.cpus=1,cell1.memory=4194304 \ --memory maxMemory=65536,maxMemory.slots=8 \ --memdev model=virtio-mem,\ target.node=0,\ target.block=2048,\ target.size=8192,\ target.requested=2097152,\ target.address_base=0x280000000 \ --memdev model=virtio-pmem,\ source.path=/tmp/virtio_pmem,\ target.size=4096,\ target.address_base=0x480000000 It results in the following domain XML snippet: <memory model='virtio-mem'> <target> <size unit='KiB'>8388608</size> <node>0</node> <block unit='KiB'>2048</block> <requested unit='KiB'>2097152</requested> <current unit='KiB'>0</current> <address base='0x280000000'/> </target> <alias name='virtiomem0'/> <address type='pci' domain='0x0000' bus='0x07' slot='0x00' function='0x0'/> </memory> <memory model='virtio-pmem' access='shared'> <source> <path>/tmp/virtio_pmem</path> </source> <target> <size unit='KiB'>2097152</size> <address base='0x480000000'/> </target> <alias name='virtiopmem0'/> <address type='pci' domain='0x0000' bus='0x08' slot='0x00' function='0x0'/> </memory> Reviewed-by: Cole Robinson <crobinso@redhat.com> Signed-off-by: Lin Ma <lma@suse.de> |
||
---|---|---|
.. | ||
devices | ||
domain | ||
install | ||
__init__.py | ||
_progresspriv.py | ||
buildconfig.py | ||
capabilities.py | ||
cli.py | ||
cloner.py | ||
connection.py | ||
diskbackend.py | ||
domcapabilities.py | ||
generatename.py | ||
guest.py | ||
logger.py | ||
network.py | ||
nodedev.py | ||
osdict.py | ||
pollhelpers.py | ||
progress.py | ||
snapshot.py | ||
storage.py | ||
support.py | ||
uri.py | ||
virtclone.py | ||
virtinstall.py | ||
virtxml.py | ||
xmlapi.py | ||
xmlbuilder.py | ||
xmlutil.py |