Showing posts with label VMWare. Show all posts
Showing posts with label VMWare. Show all posts

Friday, March 11, 2011

Lesson Learned

After not eating lunch today and doing some quick configurations withing vCenter, I accidentally deleted a vDisk off of the wrong VM. Not good. Sure enough, when logging into the ESX host, the vDisk was gone, unrecoverable. I recall VMWare ESX 3.5 had a utility named vmfs-undelete for the purpose of recovering deleted vmdk files. No longer:

vmfs-undelete utility is not available for ESX/ESXi 4.0
ESX/ESXi 3.5 Update 3 included a utility called vmfs-undelete, which could be used to recover deleted .vmdk files. This utility is not available with ESX/ESXi 4.0.

Workaround: None. Deleted .vmdk files cannot be recovered.

[VMware ESX 4.0 Update 1 Release Notes]

Fortunately the data on the vDisk can be recreated by the developer in about an hour, so all told we're not set back too far. An important lesson learned though:
  1. Always double check before permanently deleting
  2. Don't have multiple configuration windows open at the same time
  3. Eat lunch

Tuesday, August 3, 2010

Creating ISO images from a Directory

Recently at work, we had a need to transfer Citrix XenDesktop installation files into our VSphere 4 lab environment, however our ESX servers did not support USB, as the hypervisor did not have usb-storage.ko, uhci-hcd.ko, or ehci-hcd.ko modules compiled and we didn't have time to compile and load them into the kernel.

From our VSphere console, we can only mount ISOs and we can't drag and drop files into the VM, like in VMWare workstation, so the easiest way to get our files into our VMs was to burn an ISO. Fortunately this is pretty easy to do in Linux:

mkisofs -o files.iso -J ./folder


Credit where credit is due, this blog post was extremely helpful.

Thursday, June 3, 2010

P2V for KVM

Some resources I plan on using when trying to P2V a Windows Vista laptop to use on either RHEL or CentOS KVM.


Right now, the best solution looks to be to convert the physical box to a VM using VMWare vCenter Converter

I haven't ruled out using Xen, but my initial research indicates this may be easier to do on KVM then Xen. KVM appears to be more similar to Solaris Containers, whereas Xen uses paravirtualization. I've had limited experience with Xen, and no experience with KVM, so this should be a good learning exercise. Here's some more resources for reference:

Wednesday, September 2, 2009

VMWare NAT on Windows 7

While I would never dream of switching my home workstation to a new version of Windows within its first few months on the market, particularly when it is still only in RTM, at work is a different story.

I could probably still get by using XP Pro on my workstation, and put Windows 7 in a VM, I find self-immersion to be the best method to fully learn a new OS, as it forces me to get it set up completely, otherwise I can't do work.

While I've run into a few annoyances thus far (no Daemon Tools or PowerISO, urg), nothing yet has been a show stopper... until I tried accessing the internet in my XP Active Directory administration virtual machine in VMWare using NAT.

Apparently Windows 7's new compartmentalized network security breaks VMWare's NATing ability. Note in the below screen shot how the VMWare Network adapter is identified by Windows as being on a public network, thereby disabling its connection.


I was able to still use Bridged networking within VMWare, but this was not practical at work since we have to specific each connected machine's MAC address in our DHCP tables to assign it an IP- a bit overkill for an only occasionally non-critical VM.

So after some digging and a bit of troubleshooting, I found a workable solution thanks, in part to this article, using Win7's Internet Connection Sharing (ICS). One important caveat to note is that Win7's networking has changed in a few minor ways that require a bit of deviation from the article. Below is a summary of steps:

1. Run the Virtual Network Editor as Admin
2. Go to Host Virtual Adapters tab, remove all VMNet instances (default are VMNet1 and VMNet8)
3. Click Apply
4. Click Add, select VMnet1
5. Click Apply
6. Go to the Host Virtual Networking tab
7. Click the > next to VMnet1 and change the address and subnet to use the Win7 ICS network (192.168.137.0 / 255.255.255.0) <- note how this deviates from the article
8. Click Apply
9. Go the NAT tab and select VMNet1
10. Click Edit and change the Gateway to the ICS gateway IP (192.168.137.1)
11. Click Apply and restart the NAT service
12. Go to the DHCP tab
13. Add VMNet1 and remove all others
14. Click Apply
15. Select Properties of VMNet1 in DHCP Tab
16. Enter a Start and End Address for DHCP (I used 192.168.137.50 to 192.168.137.75)
17. Click OK then Apply

19. Go to Network Connections in the Windows 7 Control Panel
20. Right Click on your Local Area Connection > Properties
21. Go to Share Tab and check both boxes (Allow other network users to connect through this computer's Internet connection and Allow other network users to control or disable the shared Internet Connection [optional])
22. Click OK

23. On each VM, go to Network settings and select Host Only Networking for every VM that needs to NAT out to the network

Done! Seemed to do the trick on my XP SP3 VMs, and now I can administer our AD tree and group policy!

Tuesday, June 2, 2009

Up to Speed

So over a year after my last post, I figured it may be time to reinvigorate this blog. For whatever poor soul happens to stumble across this blog, I apologize in advance for its discontinuity, potential esoteric jargon perhaps only discernible to myself (I tend to occasionally make up words), and its unscientific approach. Honestly, I am using this blog more for my own personal benefit than anything else, as any other intended use seems fruitless and narcissistic.

That being said, this past year I've been keeping busy finishing up school, work, and side projects. As hinted by the title, I've been monkeying around with a bunch of different projects since the end of that MIST directed study in Adobe Air. Some of the projects I've undertaken, finished, or abandoned in the past year are as follow:
  • Built a new Desktop at home after my crappy video card crapped out (who'da thunk)
    • AMD Athlon 64 X2 Brisbane Dual Core 2.7GHz
    • Gigabyte GA-MA78GM-S2HP AM2+/AM2 780G HDMI Micro ATX Motherboard
    • 4GB DDR2 800 (PC6400) Dual Channel RAM
    • RAIDMAX Hybrid 2 RX-530SS Power Supply CrossFire ready
    • WD 500GB SATA II HD 7200RPM
    • WD 320GB SATA II HD 7200RPM
    • NEC 16x DVD-RW
    • ROSEWILL CD-RW/DVD-R
    • ATI TV WONDER ELITE
    • Windows Vista Professional Yeah, yeah, I know...

  • Installed Gentoo Linux Kernel 2.6.24 on Dell Optiplex GX270
    • Apache 2.2.1 compiled from source
    • MySQL 8.42 compiled from source
    • PostgreSQL 8.3.3 compiled from source
    • PHP 5.2.6 compiled from source
    • Gnome 2.20.3
  • Reengineered SMIS web site
  • Reengineering Atlantatrains web site
  • Learned well-formed DOM manipulation with AJAX (no more innerHTML!)
  • Update of UGA Franklin College OIT Project Log Tool
  • Using pdftk to generate and fill PDFs
  • Using AutoSuggest for AJAX autocompleting forms
  • Projects completed for CSCI 4300 Web Programming Course:
    • XSL style formatting
    • XML Schema and DTD
    • Created a simple ticketing system in Ruby on Rails
    • Created a simple bulletin board using Java servlets and MVC
    • Basic ANT build file syntax and usage
  • Scriptaculous sortable
  • Prototype AJAX handling
  • Set up and experimented with Subversion and TortoiseSVN on RHEL5
  • iDeneb OSX dual boot abandoned

Future projects that I hope to document using this blog include (but are not limited to):
  • Setting up OSX within VMWare Workstation (I hear its a doozy)
  • Playing with netBSD, freeBSD, and freeBSD jail within Vmware
  • Installing Oracle Express within a VM
  • Monkeying around with Sun's VirtualBox
  • Potential Projects Courtesy of Microsoft DreamSpark:
    • MS SQL Server 2008
    • MS Virtual PC
    • MS Windows Server 2008
  • Java servlets and Struts
  • Apache Modrewrite
  • Continue learning Regex!
Only time will tell how disciplined I'll be in documenting these projects, but hopefully I will be!