forked from andonome/lk
		
	Merge branch 'master' into vhs
This commit is contained in:
		
							
								
								
									
										13
									
								
								distros/void/void-background.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										13
									
								
								distros/void/void-background.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,13 @@ | |||||||
|  | #!/bin/sh | ||||||
|  | # get the void linux logo from wikipedia | ||||||
|  | wget https://upload.wikimedia.org/wikipedia/commons/thumb/0/02/Void_Linux_logo.svg/256px-Void_Linux_logo.svg.png?20170131170632 | ||||||
|  | # rename it, and resize it (the standard size is too small for most wallpapers) | ||||||
|  | convert -resize 200% '256px-Void_Linux_logo.svg.png?20170131170632' void-logo.png | ||||||
|  | # download a pretty wallpaper | ||||||
|  | wget http://wallpapercave.com/wp/Wlm9Gv0.jpg | ||||||
|  |  | ||||||
|  | # put the void logo on all *jpg and *png images | ||||||
|  | for x in *.jpg | ||||||
|  | 	do | ||||||
|  | 	composite -compose multiply -gravity Center void-logo.png "$x" "$x" | ||||||
|  | done | ||||||
							
								
								
									
										27
									
								
								new.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										27
									
								
								new.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,27 @@ | |||||||
|  | #!/bin/sh | ||||||
|  |  | ||||||
|  | echo Select a category | ||||||
|  |  | ||||||
|  | category="$(find . -type d -printf '%P\n' | fzy)" | ||||||
|  |  | ||||||
|  | [ ! -d "$category" ] && mkdir "$category" | ||||||
|  |  | ||||||
|  | echo Select a name | ||||||
|  |  | ||||||
|  | read name | ||||||
|  |  | ||||||
|  | filePath="$category/$name.md" | ||||||
|  |  | ||||||
|  | tagsList="$(echo \"$category | sed 's#\/#", "#g')\"" | ||||||
|  |  | ||||||
|  | [ -e "$filePath" ] && $EDITOR $filePath && exit 0 | ||||||
|  |  | ||||||
|  | echo "--- | ||||||
|  | title: \"$name\" | ||||||
|  | tags: [ $tagsList ] | ||||||
|  | --- | ||||||
|  |  | ||||||
|  | " > "$filePath" | ||||||
|  |  | ||||||
|  | $EDITOR "$filePath" | ||||||
|  |  | ||||||
| @@ -8,22 +8,24 @@ tags: [ "documentation", "virtualization", "xen" ] | |||||||
| xe vm-list | xe vm-list | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
| Start, stop, et c. all done with `xe`: | Start, stop, et c. with `xe`: | ||||||
|  |  | ||||||
| ```bash | ```bash | ||||||
| xe vm-start vm=*TTS* | xe vm-start vm=$TARGET_VM | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
| ```bash | ```bash | ||||||
| xe vm-shutdown vm=*Bob* | xe vm-shutdown vm=$TARGET_VM | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
| Destruction requires the uuid. | Destruction requires the uuid. | ||||||
|  |  | ||||||
| ```bash | ```bash | ||||||
| xe vm-destroy uuid=*243b1165-14aa-37f6-496f-44879d05b3f2* | xe vm-destroy uuid=$TARGET_UUID | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
|  | Autocompletion works well with all of these commands. | ||||||
|  |  | ||||||
| # Shut Down VM | # Shut Down VM | ||||||
|  |  | ||||||
| List VMs. | List VMs. | ||||||
| @@ -33,17 +35,17 @@ xe host-list | |||||||
| ``` | ``` | ||||||
|  |  | ||||||
| ```bash | ```bash | ||||||
| xe vm-list resident-on=*<uuid_of_host>* | xe vm-list resident-on=$HOST_UUID | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
| ```bash | ```bash | ||||||
| xe vm-shutdown uuid=*<UUID from step 3>* force=true | xe vm-shutdown uuid=TARGET_VM force=true | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
| If this doesn't work, try: | If this doesn't work, try: | ||||||
|  |  | ||||||
| ```bash | ```bash | ||||||
| xe vm-reset-powerstate uuid=*<UUID from step 3>* force=true | xe vm-reset-powerstate uuid=TARGET_VM force=true | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
| Get the id: | Get the id: | ||||||
| @@ -55,16 +57,14 @@ list_domains | |||||||
| And destroy the domain: | And destroy the domain: | ||||||
|  |  | ||||||
| ```bash | ```bash | ||||||
| /opt/xensource/debug/xenops destroy_domain -domid *<DOMID from step 7>* | /opt/xensource/debug/xenops destroy_domain -domid $DOM_ID | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
| # Error: `Internal error:xenopsd internal error: Storage_interface.Illegal_transition` in XenServer | # Problem Solving | ||||||
|  |  | ||||||
| ## Symptoms or Error | > Error: `Internal error:xenopsd internal error: Storage_interface.Illegal_transition` in XenServer | ||||||
|  |  | ||||||
| After a failed “Move VM”, “Copy VM”, or “Export VM” operation, the Virtual Machine (VM) being operated cannot start. Following is the error message displayed: | After a failed “Move VM”, “Copy VM”, or “Export VM” operation, the Virtual Machine (VM) being operated cannot start. | ||||||
|  |  | ||||||
| `User-added image` |  | ||||||
|  |  | ||||||
| ## Solution | ## Solution | ||||||
|  |  | ||||||
| @@ -85,32 +85,34 @@ This is the UUID of the Control Domain. The Control Domain is a privileged Virtu | |||||||
| Run the following command to obtain the UUID of the VBD (Virtual Block Device) object linking the Control Domain: | Run the following command to obtain the UUID of the VBD (Virtual Block Device) object linking the Control Domain: | ||||||
|  |  | ||||||
| ```bash | ```bash | ||||||
| xe vbd-list vm-uuid=*<uuid of the Control Domain>* | xe vbd-list vm-uuid=$CONTROL_DOMAIN_UUID | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
| Run the following commands to unplug and destroy the VBD: | Run the following commands to unplug and destroy the VBD: | ||||||
|  |  | ||||||
| ```bash | ```bash | ||||||
| xe vbd-unplug uuid=*<uuid of the vbd>* | xe vbd-unplug uuid=$VBD_UUID | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
| ```bash | ```bash | ||||||
| xe vbd-destroy uuid=*<uuid of the vbd>* | xe vbd-destroy uuid=$VBD_UUID | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
| ## Make a local iso repository | # Make a local iso repository | ||||||
|  |  | ||||||
| ```bash | ```bash | ||||||
| xe sr-create name-label=LocalISO type=iso device-config:location=/var/opt/xen/ISO_Store device-config:legacy_mode=true content-type=iso | xe sr-create name-label=LocalISO type=iso device-config:location=/var/opt/xen/ISO_Store device-config:legacy_mode=true content-type=iso | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
| This creates a UUID for the new directory: | This creates a UUID for the new directory, e.g.: | ||||||
|  |  | ||||||
| `e94e25bb-bcdc-801b-b62a-b51b686a3bdc` | > e94e25bb-bcdc-801b-b62a-b51b686a3bdc | ||||||
|  |  | ||||||
| # Import | # Import | ||||||
|  |  | ||||||
| xe vm-import filename=*/mnt/blah.xva* | ```bash | ||||||
|  | xe vm-import filename="$FILENAME".xva | ||||||
|  | ``` | ||||||
|  |  | ||||||
| # USB | # USB | ||||||
|  |  | ||||||
| @@ -151,11 +153,10 @@ xe sr-list | |||||||
| # Exporting and Exporting VMs | # Exporting and Exporting VMs | ||||||
|  |  | ||||||
| ```bash | ```bash | ||||||
| xe vm-export vm=*<Name>* filename=*/full/path.xva* | xe vm-export vm=$VM_NAME filename="$FULL_PATH".xva | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
| ```bash | ```bash | ||||||
| xe vm-import vm=*<Name>* filename=*/full/path.xva* | xe vm-import vm=*<Name>* filename="$FULL_PATH".xva | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
| @@ -4,17 +4,22 @@ tags: [ "Documentation", "xe", "virtualization", "volume" ] | |||||||
| --- | --- | ||||||
| # Make a local iso repository | # Make a local iso repository | ||||||
|  |  | ||||||
|  |  | ||||||
| ```bash | ```bash | ||||||
| mkdir -p */var/opt/xen/ISO_Store* | STORE_PATH=/var/opt/xen/ISO_Store | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
| ```bash | ```bash | ||||||
| xe sr-create name-label=*LocalISO* type=iso device-config:location=*/var/opt/xen/ISO_Store* device-config:legacy_mode=true content-type=iso | mkdir -p $STORE_PATH | ||||||
|  | ``` | ||||||
|  |  | ||||||
|  | ```bash | ||||||
|  | xe sr-create name-label="$STORAGE_NAME" type=iso device-config:location=$STORE_PATH device-config:legacy_mode=true content-type=iso | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
| This creates a UUID for the new directory: | This creates a UUID for the new directory: | ||||||
|  |  | ||||||
| `e94e25bb-bcdc-801b-b62a-b51b686a3bdc` | > e94e25bb-bcdc-801b-b62a-b51b686a3bdc | ||||||
|  |  | ||||||
| # Main Console | # Main Console | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user