[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Xen-API] Question about vm hardware configs (nic model)
- To: xen-api@xxxxxxxxxxxxx
- From: Hanfei Shen <qqshfox@xxxxxxxxx>
- Date: Wed, 29 Jan 2014 00:37:45 +0800
- Delivery-date: Tue, 28 Jan 2014 16:38:22 +0000
- List-id: User and development list for XCP and XAPI <xen-api.lists.xen.org>
Hi all,
I wonder where these configs come from: qemu-dm-48 -d 48 -m 4096 -boot dc -serial pty -vcpus 4 -videoram 4 -vncunused -k en-us -vnc 127.0.0.1:1 -usb -usbdevice tablet -net nic,vlan=0,macaddr=ae:af:b1:b2:94:1a,model=rtl8139 -net tap,vlan=0,bridge=xenbr0,ifname=tap48.0 -acpi -monitor pty
Is it possible to make changes to the hardware of VMs? For example change NIC model (to virtio)? I know there's a hack to rewrite the `/usr/lib/xen/bin/qemu-dm` or `/opt/xensource/libexec/qemu-dm-wrapper` to replace the `rtl8139` to `virtio`. It will have a effect on all the VMs created later.
I've made several attempts to solve this by myself, such as changing the vif params:
# xe vif-param-list uuid=c08d1381-ed1c-0880-8e5f-ac238a556160 uuid ( RO) : c08d1381-ed1c-0880-8e5f-ac238a556160 vm-uuid ( RO): f092bb24-11ee-e5a3-3cfd-1c8c83161407 vm-name-label ( RO): Other install media (1) allowed-operations (SRO): attach current-operations (SRO): device ( RO): 0 MAC ( RO): 92:61:9c:7a:da:09 MAC-autogenerated ( RO): true MTU ( RO): 1500 currently-attached ( RO): false qos_algorithm_type ( RW): qos_algorithm_params (MRW): qos_supported_algorithms (SRO): other-config (MRW): network-uuid ( RO): 8afa3eea-9ec0-0a6c-1208-580cad692cb2 network-name-label ( RO): Pool-wide network associated with eth0 io_read_kbs ( RO): <unknown> io_write_kbs ( RO): <unknown> locking-mode ( RW): network_default ipv4-allowed (SRW): ipv6-allowed (SRW):
Add a config (`other-config:model=virtio`) into the `other-config` section, but no luck. Is there a better way to change the setting for a specific VM?
Best regards, Hanfei |
_______________________________________________
Xen-api mailing list
Xen-api@xxxxxxxxxxxxx
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
|