Any VMWare experts ...
 

[Closed] Any VMWare experts in?

15 Posts
4 Users
0 Reactions
60 Views
Posts: 91104
Free Member
Topic starter
 

A CentOS VM crashed badly, buggering up the entire filesystem so now it's not even recognised. Don't suppose there's any way to do some kind of fsck on it?


 
Posted : 25/11/2015 8:49 pm
Posts: 91104
Free Member
Topic starter
 

Well I mounted it, but it's properly buggered.


 
Posted : 25/11/2015 9:33 pm
Posts: 0
Free Member
 

Where's the vdisk stored exactly? No snapshotting on your SAN?


 
Posted : 25/11/2015 10:07 pm
Posts: 91104
Free Member
Topic starter
 

It's my laptop. I use VMs for setting up different environments for dev.

Managed to use vmware disk tools to mount it but couldn't get anything out of it. I have a copy at home, just means I can't do what I wanted to tonight.


 
Posted : 25/11/2015 10:33 pm
Posts: 0
Free Member
 

Environments for Dev? You really need to get Vagrantup.com

I couldn't imagine actually building virtual environments by hand these days.

Rachel


 
Posted : 25/11/2015 10:44 pm
Posts: 0
Free Member
 

If the vm disk was damaged, I'd just have to type vagrant destroy and then vagrant up to be sorted again.


 
Posted : 25/11/2015 10:46 pm
Posts: 91104
Free Member
Topic starter
 

Hmm. I only need ONE environment for each product, so setting all that up would be far more difficult than simply installing each setup by hand. It's only for my personal use, no-one else uses it.


 
Posted : 25/11/2015 10:48 pm
Posts: 91104
Free Member
Topic starter
 

Vagrant = docker?

EDIT not quite.


 
Posted : 25/11/2015 10:51 pm
Posts: 0
Free Member
 

Well, the fact it now needs rebuilding kind of demonstrates that's not exactly true... 😉


 
Posted : 25/11/2015 10:51 pm
Posts: 91104
Free Member
Topic starter
 

It'll still be quicker!

Product installation is complicated enough without having to script it through some third party palaver. Too heavyweight for my purposes.

I have a backup in this case, as it happend, but as policy I don't. I'd have to rebuild which means starting from a template I have and running the installers I have, for this particular environment it's simple. But for others it's totally different.


 
Posted : 25/11/2015 10:54 pm
Posts: 0
Free Member
 

No, vagrant provides "control" over VMs. Allows you to define a fm in files, including how it should be configured etc. Then all you have to do is start it and magic happens. Out pops a perfect vm each time.

Means you can share a vm with someone simply by sending the definition which will then auto-build on their machine.

Allows the vm host sw to be either VMware or Virtualbox.


 
Posted : 25/11/2015 10:55 pm
Posts: 91104
Free Member
Topic starter
 

Means you can share a vm with someone simply by sending the definition which will then auto-build on their machine.

Still doesn't seem beneficial for me, given how infrequently I have to duplicate or share anything.


 
Posted : 25/11/2015 10:57 pm
Posts: 0
Free Member
 

Okay, if nothing else, it is always good practice to remove manual procedures from any development process; they are too easily prone to error. Often, the effort required to script or otherwise define the build means that the build is better thought out and more "robust".

I'll be surprised if each Dev environment you create is really that unique.

Rachel


 
Posted : 25/11/2015 11:05 pm
Posts: 91104
Free Member
Topic starter
 

You are thinking in terms of running a dev environment for a team, I think, which is not what I'm doing.

I'll be surprised if each Dev environment you create is really that unique.

They all have different product stacks on, that's why I have them!


 
Posted : 25/11/2015 11:07 pm
Posts: 0
Free Member
 

Okay, this is starting to feel a little bit like a broken Volkswagen...


 
Posted : 25/11/2015 11:10 pm
Posts: 7095
Full Member
 

Can you boot a linux rescue CD in your VM, and then just run fsck manually from your rescue shell?

Or alternatively, there's a command for turning a VM disk into a real physical disk you can mount in the host. I can't remember what it's called though, I'll have a quick look.

EDIT: kpartx might help.


 
Posted : 25/11/2015 11:14 pm