VMware Cloud Community
fredz
Contributor
Contributor

No route to host

I am trying to ftp from the service console to a guest OS on the same physical server, but get No route to host. Can't ping any of the OSes either. All guests are in vSwitch1 while the Service Console is in vSwitch0. How can I "bridge" those so I can access the guests from the service console? Thanks

Reply
0 Kudos
7 Replies
RvdNieuwendijk
Leadership
Leadership

Are the the service console and the guest OS in the same subnet or VLAN? If that is not the case you have to connect the two networks with a router. The router can be a physical router or a VM functioning as a router.

Regards, Robert

Blog: https://rvdnieuwendijk.com/ | Twitter: @rvdnieuwendijk | Author of: https://www.packtpub.com/virtualization-and-cloud/learning-powercli-second-edition
Reply
0 Kudos
fredz
Contributor
Contributor

Hmm my problem is this: I have an ISO file in a directory in a Debian guest OS of ESX3. I need to move this file to the datastore on the console. Is there really no easier way? Please note: I do NOT have the file on my local system, only in a Debian guest OS on the ESX3.5

Reply
0 Kudos
RvdNieuwendijk
Leadership
Leadership

You can copy the guest file to a datastore connected to the ESX server using VMware vSphere PowerCLI. Something like:

Connect-VIserver YourESXserverName
$vm = Get-VM -Name YourVMname
Copy-VMGuestFile -Source /root/dvd.iso -Destination c:\temp\ -VM $vm -GuestToLocal -HostUser root -HostPassword pass1 -GuestUser administrator -GuestPassword pass2
$ds = Get-Datastore -Name YourDatastoreName
$Drive = New-PSDrive -Name ds -PSProvider VimDatastore -Root '/' -Location $ds
Copy-DatastoreItem c:\temp\dvd.iso* ds:\YourVMname\ -Force

This script will only work if you have the VMware Tools installed in the guest OS. If the file you have to copy is large, it can take a long time to copy the file, because the Copy-VMGuestFile is slow.

After this script has run you can use the service console to retrieve the file from /vmfs/volumes/YourVMname.

Regards, Robert

Blog: https://rvdnieuwendijk.com/ | Twitter: @rvdnieuwendijk | Author of: https://www.packtpub.com/virtualization-and-cloud/learning-powercli-second-edition
Reply
0 Kudos
fredz
Contributor
Contributor

That's an interesting script. But what does the "c:\temp" do exactly? I do not want to have the file transit through my workstation. I want to copy it from the guest to the datastore on the host...

Reply
0 Kudos
RvdNieuwendijk
Leadership
Leadership

I don't know of a way to copy the file direct from the guest to the host. So I use a Windows PC as an intermediate. The script copies the file first from the guest to your PC. Afterwards it copies the file from your PC to the datastore.

Blog: https://rvdnieuwendijk.com/ | Twitter: @rvdnieuwendijk | Author of: https://www.packtpub.com/virtualization-and-cloud/learning-powercli-second-edition
Reply
0 Kudos
nanair01
Enthusiast
Enthusiast

check out the VMware Guest Console from the VMware Labs. It's a seperate product, but it's free!

If you find this post helpful/rectify your problem do not forget to award points

If you find this post helpful/rectify your problem do not forget to award points
Reply
0 Kudos
fpjansen
Contributor
Contributor

VMware Workstation 7 has an option that solves the guest-host copying:

- right-click on the VM and select Settings...

- in the Settings window click on the Options tab

- click on Shared Folders and set up the share

Once set up, you'll see the share mounted appropriately for your OS, such as:

.host:/ 963163132 129354336 833808796 14% /mnt/hgfs

under Fedora Core 13.

Cheers,

Frank

Reply
0 Kudos