How to add uplink in esx virtual switch using libvirt

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I have an ESXi server, on top of it I have created one VM whose IP address is 192.168.79.1.
I want to connect to the VM on ESXi server from my host machine but I am not able to do it.
I have created a network "networkforSC" and I have pasted my xml file content below but I am not able to add any uplink (how to add it?) .
Below is the xml file of my node as well as the network which I am creating on my ESXi server

<domain type='vmware'>
<name>testNode</name>
<uuid>50115e16-9bdc-49d7-f171-53c4d7f91710</uuid>
<memory>1048576</memory>
<currentMemory>1048576</currentMemory>
<vcpu>1</vcpu>
<console>/dev/console</console>
<os>
<type arch='x86_64'>hvm</type>
</os>
<devices>
<disk type='file' device='disk'>
<source file='[datastore1] testNode/testNode.vmdk'/>
<target dev='sda' bus='scsi'/>
<address type='drive' controller='0' bus='0' unit='0'/>
</disk>
<controller type='scsi' index='0' model='lsilogic'/>
<!--controller type='scsi' index='0'/-->
<interface type='bridge'>
<mac address='00:50:56:25:48:c7'/>
<source bridge='VM Network'/>
</interface>
<interface type='bridge'>
<source bridge='test'/>
</interface>
</devices>
</domain>

##########################################

Network File:

<network>
<name>networkforSC</name>
<portgroup name='test'>
</portgroup>
</network>

I have checked the network which got created on the server.
As I have not attached any uplink (vmnic0) I can not see it (I want to attach it).

#esxcli network vswitch standard list

networkforSC
Name: networkforSC
Class: etherswitch
Num Ports: 128
Used Ports: 2
Configured Ports: 128
MTU: 1500
CDP Status: listen
Beacon Enabled: false
Beacon Threshold: 3
Beacon Required By:
Uplinks:
Portgroups: test


Can anyone please help me out in adding the uplink and also can anyone tell me whether I am going in a right direction so that I could ping my virtual machine created on ESXi server.


Regards,
Varun
--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]