-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import_precheck
fails on CentOS 7
#1736
Comments
import_precheck
fails on CentOS 7
Hey, Although as a workaround I'm doing the pre-checks manually, its just check for the root device disk to be mounted at '/' by
Other check it does that if there are multiple mount paths except '/' then they all should belong to some physical drive (which is obvious) and the physical device is other than the rootDevice (in my case sda) then these mount paths will be omitted from image import. and same is case if same mount path is mounted to multiple devices. So, in my case only '/' and '/boot' mount path will be there and rest will be omitted (excluded) from import. ( And the last check it performs for the MBR partition type. All the partition on all the disk should be of MBR.
The Partition Table field shows that I am using a msdos MBR partition table (the one still commonly used for Linux and Windows) on both disks. From the man page parted can create (and thus hopefully identify) the following types of partition table (or more broadly `disk label'):
The command for listing a single partition if there are multiple drives. For /dev/sda you would do:
For these checks see the src code : here -------------- Based on a community thread in order to import your VM Instance; You must meet these necessary requirements for the Source VM instance and the OVF file in order to import your instance to GCP: Source VM requirements:
OVF file requirements:
Hope this helps :) ! |
Thanks for the report; we'll take a look! |
This refactors `cli_tools/import_precheck` to achieve the following: 1. Move implementation to a different package than `main`, to allow gomock to be used. 2. Add comments and documentation 3. Change the copyright formatting to match the rest of `compute-image-tools` This works toward fixing #1736
Prior to this PR, the system's block device hierarchy was fetched using lsblk --json. This caused errors in systems that did not support this flag for lsblk, eg #1736.
Fails since
lsblk
on CentOS 7 is version2.23.2
which I believe is quite old and doesn't support--json
.* WARN: Failed to execute lsblk: lsblk: exit status 1, stderr: lsblk: unrecognized option '--json'
Works fine on CentOS 8 which uses
lsblk
version2.32.1
The text was updated successfully, but these errors were encountered: