Jump to content
Welcome to our new Citrix community!
  • 0

Reset The Root Password For A Linux VM Hosted On XenServer


Question

Hi, can anyone help reset the root password of a Ubuntu VM 12.04, but I do not know the VM password, I have already followed some tutorials, but I have not been successful.

 

1 - De acordo com a imagem, altereio nivel de inicialização para "rw init = / bin / bash"

 

2 - According to the second image, the start is successful, I used the command to mount the file system with the command "mount -o remount, rw / dev / xvda1 /".

 

best regard,

Wesley Santos

Captura de tela de 2019-05-09 16-08-20.png

Captura de tela de 2019-05-09 16-50-57.png

Link to comment

2 answers to this question

Recommended Posts

  • 0

One option: https://support.citrix.com/article/CTX204348

 

Another option if you cannot boot onto an emergency disk:

 

A) from XenCenter vm-storage: detach VDI from original vm (note: make sure the vdi name/description is unique so that it can be identified)

B) from XenCenter vm-storage: attach VDI on the second running vm

C) in running vm: mount /dev/xvdb2 /mnt

D) browse/edit as needed

E) in running vm: umount /mnt

F) typically before detach can work on second running vm

  a) from XenServer-acadvirtualX: xe vdi-disk-list vm=running-vm

  b) identify the associated VBD-UUID

  c) from XenServer-acadvirtualX: xe vbd-unplug uuid=VBD-UUID

G) from XenCenter vm-storage: detach VDI on the second running vm

H) from XenCenter vm-storage: attach VDI back on original vm

 

-=Tobias

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...