Skip to main content

VM Networking

Change Network

xe vm-list
Copy the uuid for the VM you want to remove the interface.
xe vif-list vm-uuid=<vm-uuid>
Copy the uuid for the vif you want to destroy.
xe vif-destroy uuid=<vif-uuid>
Note you will need to know which device you want to remove if there is more than one interface attached to the VM.
Add:

xe network-list ( "name-label=<label>" )
Copy the networks uuid.
xe vif-create network-uuid=<network-uuid> vm-uuid=<vm-uuid> device=0

Assign IP addressing to VM

xe vm-param-set uuid=8bc00eab-9f3e-4e9c-c7bb-f01dfabc758d xenstore-data:vm-data/ip=10.10.0.89 xenstore-data:vm-data/netmask=255.255.255.0 xenstore-data:vm-data/gateway=10.10.0.2 xenstore-data:vm-data/dns=10.10.0.3