Does anyone know wowto pass the ifname parameter into machine.conf???
I need to have always the same device for each VM
I mean a thing like this:
in the normal situation i have a command line generated by the proxmox admin
/usr/bin/kvm -monitor unix:/var/run/qemu-server/102.mon,server,nowait
-vnc unix:/var/run/qemu-server/102.vnc,password
-pidfile /var/run/qemu-server/102.pid
-daemonize
-usbdevice tablet
-name oltrefersina
-id 102
-cpuunits 1000
-tdf
-k en-us
-drive file=/var/lib/vz/images/102/vm-102-default.qcow2,if=ide,index=0,boot=on
-drive file=,if=ide,index=2,media=cdrom
-m 512
-net tap,vlan=0,script=/var/lib/qemu-server/bridge-vlan0
-net nic,vlan=0,model=e1000,macaddr=52:54:00:12:34:60
if i add ifname as parameter it creates the right tap
/usr/bin/kvm -monitor unix:/var/run/qemu-server/102.mon,server,nowait
-vnc unix:/var/run/qemu-server/102.vnc,password
-pidfile /var/run/qemu-server/102.pid
-daemonize
-usbdevice tablet
-name oltrefersina
-id 102
-cpuunits 1000
-tdf
-k en-us
-drive file=/var/lib/vz/images/102/vm-102-default.qcow2,if=ide,index=0,boot=on
-drive file=,if=ide,index=2,media=cdrom
-m 512
-net tap,vlan=0,ifname=tap9,script=/var/lib/qemu-server/bridge-vlan0
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-net nic,vlan=0,model=e1000,macaddr=52:54:00:12:34:60
How can i add this parameter into conf file?
Tx, Diaolin
I need to have always the same device for each VM
I mean a thing like this:
in the normal situation i have a command line generated by the proxmox admin
/usr/bin/kvm -monitor unix:/var/run/qemu-server/102.mon,server,nowait
-vnc unix:/var/run/qemu-server/102.vnc,password
-pidfile /var/run/qemu-server/102.pid
-daemonize
-usbdevice tablet
-name oltrefersina
-id 102
-cpuunits 1000
-tdf
-k en-us
-drive file=/var/lib/vz/images/102/vm-102-default.qcow2,if=ide,index=0,boot=on
-drive file=,if=ide,index=2,media=cdrom
-m 512
-net tap,vlan=0,script=/var/lib/qemu-server/bridge-vlan0
-net nic,vlan=0,model=e1000,macaddr=52:54:00:12:34:60
if i add ifname as parameter it creates the right tap
/usr/bin/kvm -monitor unix:/var/run/qemu-server/102.mon,server,nowait
-vnc unix:/var/run/qemu-server/102.vnc,password
-pidfile /var/run/qemu-server/102.pid
-daemonize
-usbdevice tablet
-name oltrefersina
-id 102
-cpuunits 1000
-tdf
-k en-us
-drive file=/var/lib/vz/images/102/vm-102-default.qcow2,if=ide,index=0,boot=on
-drive file=,if=ide,index=2,media=cdrom
-m 512
-net tap,vlan=0,ifname=tap9,script=/var/lib/qemu-server/bridge-vlan0
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-net nic,vlan=0,model=e1000,macaddr=52:54:00:12:34:60
How can i add this parameter into conf file?
Tx, Diaolin
Last edited: