otto
July 25, 2018, 8:06pm
1
So I loaded up the vmware iso (in vmware vcenter) and it booted up fine, made my changes to cloud-config.yml and tried to do an install to disk:
sudo ros install -c cloud-config.yml -d /dev/sda
but it always crashes with error "error msg=“Failed to partprobe device /dev/sda: exit status 127”
I’m assuming this is some kind of partition error (means it’s already installed)?
If I force reboot the instance, it now comes back up in what appears to be in an uninstalled state. If I try the install command again, it then works.
So what is the purpose of the rancheros-vmware.iso? If installing to disk, should we be using the generic rancheros.iso?
ml2
July 26, 2018, 3:55am
2
I think the VMware iso comes with the VMware tools installed in it.
For your error when trying to install it to disk I have the exact same problem. I thought there was something special in my setup or I was doing something wrong.
hi gays,
I think below link is useful for your problem.
opened 02:17AM - 28 May 18 UTC
closed 02:34AM - 28 May 18 UTC
**RancherOS Version: v1.4.0-rc2**
**Where are you running RancherOS? (docker-… machine, AWS, GCE, baremetal, etc.)**
VMware ESXi 6.0.0 6765062
I booted from downloaded [iso for ESXi](https://github.com/rancher/os/releases/download/v1.4.0-rc2/rancheros-vmware.iso) and tried to install as I tried before.
But can't install v1.4.0-rc2 to the virtual disk. (PVSCSI, SCSI 0:0, 50GB)
Installer seems to be failed to recognize dd'ed partition.
Please check the following line in the attached debug log.
PVSCSI driver seems to work, and Virtual Disk(/dev/sda) is recognized correctly.
(see extracted output from dmesg below.)
```
time="2018-05-28T01:56:12Z" level=error msg="Failed to partprobe device /dev/sda: exit status 127"
```
* installer debug log
```
[rancher@rancher ~]$ sudo ros install -c cloud-config.yml --debug -d /dev/sda
INFO[0000] Log level is debug
INFO[0000] No install type specified...defaulting to generic
Installing from rancher/os:v1.4.0-rc2
Continue [y/N]: y
INFO[0004] start !isoinstallerloaded
DEBU[0005] mount (&exec.Cmd{Path:"/bin/mount", Args:[]string{"mount", "-t", "iso9660", "/dev/sr0", "/bootiso"}, Env:[]string(nil), Dir:"", Stdin:io.Reader(nil), Stdout:io.Writer(nil), Stderr:io.Writer(nil), ExtraFiles:[]*os.File(nil), SysProcAttr:(*syscall.SysProcAttr)(nil), Process:(*os.Process)(nil), ProcessState:(*os.ProcessState)(nil), ctx:context.Context(nil), lookPathErr:error(nil), finished:false, childFiles:[]*os.File(nil), closeAfterStart:[]io.Closer(nil), closeAfterWait:[]io.Closer(nil), goroutine:[]func() error(nil), errch:(chan error)(nil), waitDone:(chan struct {})(nil)})
DEBU[0005] Mounted /dev/sr0, output:
INFO[0005] trying to load /bootiso/rancheros/installer.tar.gz
cd7100a72410: Loading layer 4.403MB/4.403MB
db89c66fb747: Loading layer 15.6MB/15.6MB
d493333d7501: Loading layer 5.12kB/5.12kB
3f49e3bd7a98: Loading layer 18.79MB/18.79MB
8ba56f5c1067: Loading layer 1.645MB/1.645MB
8c5da3b3f97a: Loading layer 1.536kB/1.536kB
8e74003570b1: Loading layer 2.56kB/2.56kB
c11d8fa4adc4: Loading layer 3.072kB/3.072kB
Loaded image: rancher/os-installer:latest
INFO[0006] Loaded images from /bootiso/rancheros/installer.tar.gz
INFO[0006] starting installer container for rancher/os-installer:latest (new)
DEBU[0006] Run(&{/bin/system-docker [system-docker run --rm --net=host --privileged -v /:/host --volumes-from=all-volumes rancher/os-installer:latest -t generic -d /dev/sda -i rancher/os-installer:latest -f --no-reboot -c /opt/user_config.yml --isoinstallerloaded=1 --debug] [] <nil> <nil> <nil> [] <nil> <nil> <nil> <nil> <nil> false [] [] [] [] <nil> <nil>})
time="2018-05-28T01:56:12Z" level=info msg="Log level is debug"
Installing from rancher/os-installer:latest
time="2018-05-28T01:56:12Z" level=debug msg="running installation"
time="2018-05-28T01:56:12Z" level=debug msg="running setDiskpartitions"
time="2018-05-28T01:56:12Z" level=debug msg=setDiskpartitions
time="2018-05-28T01:56:12Z" level=debug msg="running dd device: /dev/sda"
time="2018-05-28T01:56:12Z" level=debug msg="running partprobe: /dev/sda"
time="2018-05-28T01:56:12Z" level=error msg="Failed to partprobe device /dev/sda: exit status 127"
time="2018-05-28T01:56:12Z" level=error msg="error setDiskpartitions exit status 127"
time="2018-05-28T01:56:12Z" level=fatal msg="Failed to run install" err="exit status 127"
```
* dmesg (PVSCSI)
```
[rancher@rancher ~]$ dmesg | grep pvs
[ 19.209758] vmw_pvscsi: using 64bit dma
[ 19.209913] vmw_pvscsi: max_id: 16
[ 19.209964] vmw_pvscsi: setting ring_pages to 8
[ 19.215411] vmw_pvscsi: enabling reqCallThreshold
[ 19.215515] vmw_pvscsi: driver-based request coalescing disabled
[ 19.215516] vmw_pvscsi: using MSI-X
[ 19.215802] vmw_pvscsi 0000:03:00.0: VMware PVSCSI rev 2 host #2
```
* dmesg (Virtual Disk)
```
[rancher@rancher ~]$ dmesg | grep sda
[ 0.000000] Command line: BOOT_IMAGE=../vmlinuz-4.14.32-rancher2 rancher.autologin=tty1 rancher.autologin=ttyS0 rancher.autologin=ttyS1 rancher.autologin=ttyS1 rancher.state.autoformat=[/dev/sda,/dev/vda] rancher.state.dev=LABEL=RANCHER_STATE console=tty1 console=ttyS0 console=ttyS1 printk.devkmsg=on panic=10 initrd=../initrd-v1.4.0-rc2
[ 0.000000] Kernel command line: BOOT_IMAGE=../vmlinuz-4.14.32-rancher2 rancher.autologin=tty1 rancher.autologin=ttyS0 rancher.autologin=ttyS1 rancher.autologin=ttyS1 rancher.state.autoformat=[/dev/sda,/dev/vda] rancher.state.dev=LABEL=RANCHER_STATE console=tty1 console=ttyS0 console=ttyS1 printk.devkmsg=on panic=10 initrd=../initrd-v1.4.0-rc2
[ 19.217646] sd 2:0:0:0: [sda] 104857600 512-byte logical blocks: (53.7 GB/50.0 GiB)
[ 19.217877] sd 2:0:0:0: [sda] Write Protect is off
[ 19.219481] sd 2:0:0:0: [sda] Mode Sense: 61 00 00 00
[ 19.219506] sd 2:0:0:0: [sda] Cache data unavailable
[ 19.219596] sd 2:0:0:0: [sda] Assuming drive cache: write through
[ 19.220453] sd 2:0:0:0: [sda] Attached SCSI disk
[ 22.162722] EXT4-fs (sda): mounted filesystem with ordered data mode. Opts: (null)
```
The rancher-vmware.iso
is used for docker-machine. It will autoformat the root disk, docker-machine mechanism made me have to do this.
We will release all stuff for vmware.
rancher:master
← Jason-ZW:support-release-vmware-noformat-iso
opened 05:22AM - 15 Oct 18 UTC
related: #2468
```
- vmware/
|- rancheros.iso
|- rancheros-autofo… rmat.iso
|- rancheros.vmdk
|- initrd
|- rootfs.tar.gz
```
- [x] add vmware autoformat iso
- [x] add vmware noformat iso
- [x] add vmware initrd
- [x] add vmware rootfs
- [x] add vmawre vmdk