[SOLVED] ‘Virtualized Intel VT-x/EPT is not supported on this platform. Continue without virtualized Intel VT-x/EPT’ on Windows 11 host

I was trying to run a Debian, Linux, guest on a Windows 11 Enterprise host with virtualization enabled for the VMWare Linux guest so that I could install minikube. Minikube requires running a VM on the host on which minikube is running, so essentially, a VM within a VM.

After enabling the “Virtualize Intel VT-x/EPT or AMD-V/RVI” setting and attempting to boot the VM it indicated that this configuration was not supported on this platform.

After quite a bit of digging I figured out the settings required for the Windows 11 host.

  1. Disable Hyper-V
    1. Open the Control Panel and search for “program”
    2. Click on Turn Windows features on or off which will open another modal
    3. Ensure that Hyper-V and all of its child check-boxes are de-selected
    4. Ensure that Virtual Machine Platform is deselected
  2. Disable Core Isolation/Memory integrity
    • Open Settings and click on **Privacy & Security** in the left-hand nav
    • Click on Windows Security
    • Click on Device Security
    • Click on Core isolation details under the Core isolation heading
    • Toggle the Memory integrity setting to Off and restart your machine

How to check if a file is sourced in Bash

Sometimes you will want to ensure that a file is sourced instead of executed. This ensures, among other things, that any environment variables that the script defines remain in your current shell after the script completes.

To do so, use the following to check whether the file was sourced or run in a sub-shell

(return 0 2>/dev/null) && sourced=1 || sourced=0
echo "sourced=$sourced"

Bash allows return statements only from functions and in a scripts top level scope IF it is sourced. If you try to use a return statement outside of a function in a non-sourced context it returns an error.

Pruning directories from find

I have no idea why, but for some reason I always have a hard time remembering the exact syntax for find when I want to prune some list of directories from a search.

Let’s say that you want to execute a find in a directory where there are a lot of .git directories and you don’t want to search through the guts of the repo directories. With the following command we specify the prune predicate ahead of the search for any file that has ‘*.json’ in the file name.

find ./ -type f -iwholename '*.git' -prune -o -name '*.json' -print

Another way to do it is to exclude specific directories from a search. With the following command we first specify a set of directories to exclude from the search, by specific path and name, and then execute a search for the specific files.

find ./ -type d \( -path ./grpc-java -o -path ./go-in-mem-datastore \) -prune -o -name '*.json' -print

Using cut with a delimiter of any amount of whitespace

The TLDR; is to first use tr to replace all occurrences of any horizontal whitespace character with a single space, and then squeeze down any number of spaces to a single space and then define the delimiter for cut as a single space. The following example assumes that you want to see from the 5th column to the end of the line.

<do-something-to-generate-input> | tr '[:blank:]' ' ' | tr -s ' ' | cut -d ' ' -f5-

The previous command will, after using -s to squeeze repeated spaces into one and then cut from the 5th field to the end of the line.

Pumpkin Pie

This recipe is for pumpkin pie made from fresh pumpkin. I have not tried swapping out the pumpkin for the same volume of canned pumpkin. I typically use a Cheese or Galeux d’Eysines pumpkin. The former is a squat, grey colored pumpkin that looks like a cheese wheel and the latter like it was grown in Chernobyl and is grey covered in what can best be described as warts. The more ‘warts’ the sweeter they are. They are both delicious.

Ingredients

  • 3 cups pumpkin, cooked and drained
  • 1/8 tsp salt
  • 1 large egg, lightly beaten
  • 1 tsp vanilla extract
  • 1/2 tsp ground cinnamon
  • 1/4 tsp ground nutmeg
  • 1/4 tsp ground allspice
  • 1/4 tsp ground cloves
  • 2 tbs flour
  • 3/4 cup sugar (or less depending on how sweet the pumpkin is)
  • Pie crust

Directions

You can either bake, or if you have one, pressure cook the pumpkin

Bake the Pumpkin

Wash and cut the pumpkin in half. You will need a very large, and very sharp kitchen knife and enough umphf to get through pumpkin. Scoop out all of the seeds and stringy material. Scoop out all of the seeds and stringy material.

If you have a dish large enough covered disk, place the pumpkin cut side down in about 1″ of water and bake, covered at 375 F for anywhere from 45 min to 1.5 hours. It depends on the size and density of the pumpkin. If you don’t have a dish large enough cut the pumpkin into as many reasonably large chunks as you can and cook in covered pyrex, or similar, dishes with covers.

Pressure Cook the Pumpkin

Wash and cut the pumpkin into similarly thick slices/chunks that will fit in your pressure cooker. If you have a basket, use it, so that the pumpkin is not immersed in the water as it cooks; you want to steam it, not boil it.

Pressure cook, on high for about 15 minutes. Turn off the pressure cooker and let it sit without letting the steam out, for another 5 minutes.

Separate the Meat from the Skin

Once you can easily pass a fork through the meat, it is done.

Remove from the oven and transfer to a large pot and let drain and cool enough to be able to hold the slice of pumpkin in a towel in your hand, skin side down. Then with a spoon scoop out the meat, separating it from the skin placing in another large bowl or pot.

After the pumpkin cools further, there will probably be some pools of water in or around it. Use a clean cotton towel to sop up as much as you can, but do not try to get it completely dry.

Make the pie filling

Mix the sugar, flour, salt, and spices together in a large mixing bowl until well mixed.

Add the pumpkin, vanilla, and egg and beat with a mixer until smooth.

Pour into crust and bake for 45 min to 1 hour at 375 F.

Pasta-Bean Soup with Fresh Herbs

Ingredients

  • 2 cups sliced fresh mushrooms
  • 1 medium onion, chopped
  • 2 cloves garlic, minced
  • 1 tablespoon margarine or butter
  • 2 14%-ounce cans vegetable, chicken, or beef broth
  • 4 cup small pasta shells
  • 1 16-ounce can tomatoes, cut up
  • 1 15-ounce can garbanzo beans, rinsed and drained
  • 1/4 cup snipped fresh basil
  • 1 tablespoon snipped fresh thyme
  • Fresh basil sprigs (optional)

Directions

In a large saucepan or Dutch oven cook the mushrooms, onion, and garlic in hot margarine or butter till tender but not brown. Add vegetable, chicken, or beef broth. Bring to a boil. Stir in the pasta. Return to a boil. Cook for 10 to 12 minutes or till pasta is al dente (tender bur still firm). Stir in undrained tomatoes and garbanzo beans. Heat through.

Just before serving, stir in fresh basil and thyme. To serve, ladle soup into individual bowls. If desired, garnish with fresh basil.

Makes 4 servings.

Four Bean Enchiladas

Ingredients

  • 16 6-inch corn tortillas
  • 1 15-ounce can red kidney beans, rinsed and drained
  • 1 15-ounce can garbanzo beans, rinsed and drained
  • 1 15-ounce can pinto beans, rinsed and drained
  • 1 15-ounce can navy or great northern beans, rinsed and drained
  • 1 11-ounce can condensed cheddar cheese or nacho cheese soup, or 10 ounces of cheddar cheese
  • 1 10-ounce can enchilada sauce
  • 1 8-ounce can tomato sauce
  • 14 cups shredded Monterey Jack or cheddar cheese (6 ounces)
  • Sliced pitted ripe olives (optional)
  • Chopped green pepper (optional)

Directions

Stack tortillas and wrap tightly in foil. Bake in a 350° oven for 10 minutes or till warm.

For filling, combine beans and cheese soup. Spoon about 1/4 cup filling onto one end of each tortilla. Starting at the end with the filling, roll up each tortilla. Arrange tortillas, seam side down, in 8 individual dishes or two 2-quart rectangular baking dishes.

In a bowl stir together the enchilada sauce and tomato sauce: pour over tortillas. Cover with foil. Bake in a 350° oven for 20 minutes. For individual dishes or 30 minutes for baking dishes or till heated through. Remove foil; sprinkle with cheese. Bake, uncovered, about 5 minutes more or till cheese melts. If desired, sprinkle with olives and green pepper.

Makes 8 servings.

Spinach and Rice Caserole

Ingredients

  • 1 small onion, chopped (4 cup)
  • 1 clove garlic, minced
  • 1 tablespoon cooking oil
  • 1 14-ounce can peeled Italian-style tomatoes, cut up
  • 1 teaspoon dried oregano or basil,crushed
  • 8 ounces tofu, drained
  • 2 cups cooked brown rice
  • 1 10-ounce package frozen chopped spinach, thawed and well drained
  • A cup shredded Swiss cheese (2 ounces)
  • A teaspoon salt
  • A teaspoon pepper
  • 1 tablespoon sesame seed, toasted

Directions

In a large saucepan cook the onion and garlic in hot oil till onion is tender but not brown. Add undrained tomatoes and oregano or basil. Bring to a boil; reduce heat. Simmer, uncovered, about 3 minutes. Meanwhile, place tofu in a food processor bowl or blender container. Cover and process or blend till smooth. Add to tomato mixture. Stir in cooked rice, spinach, half of the Swiss cheese, salt, and pepper.
Grease 4 individual casseroles or one 2-quart rectangular baking dish. Spoon mixture into casseroles.

Bake, uncovered, in a 350° oven for 30 to 40 minutes or till heated through. Sprinkle with remaining
cheese and sesame seed.

Makes 4 servings.

[SOLVED] What is the right type of glue for heated motorcycle grips?

Last winter I finally put a set of heated grips on my street bike. I went with a variable setting model from Koso, which happens to make all sorts of awesome electrical components for motorcycles. They suggested using Krazy glue to adhere them to the clipon and throttle and I did not want to go that way. I read a number of posts that suggested using regular grip glue or hairspray. I tried both and they didn’t work. As soon as the grips came up to temperature they melted the glue and I then had a spinning grip.

I decided to try some J-B Weld Hi-temp RTV and that seems to work like a champ. After cleaning the clipon and throttle with acetone I put a very thin coat on the clipon and throttle and then another super thin layer inside the grip. Then slid the grips on and put them in position and wiped off any excess RTV on both sides of the grip. After letting it sit for a few days tested it out and it has worked great so far.

Mexican Casserole and Sliced Avocados

You can use either boneless chicken breasts, beans, or other meat substitute for the protein

Ingredients

  • Additional protein: choose from one of the following
    • 3 boneless skinless chicken breasts
    • Equivalent mass of cooked chick peas or vegetarian meat substitute
  • 1 cup sour cream
  • 1 cup salsa
  • 4 green onions
  • 1/2 cup cream cheese
  • 2 cups shredded Monterey Jack cheese
  • 4 4-ounce can diced green chilies
  • 4 corn tortillas
  • 1 15-ounce can black beans – rinsed and drained
  • 2 ripe avocados – sliced

Instructions

  1. Preheat your oven to 350 degrees
  2. If using chicken cook it in a pan until it is mostly cooked
  3. If using vegetarian substitute cook in pan until lightly browned
  4. Add salsa and cream cheese and heat through until cream cheese is melted
  5. Add black beans and green chilies and heat through
  6. In a large casserole dish, layer ingredients as follows: Com tortillas, chicken mixture, sour cream, green onions & cheese
  7. Bake for 30 minutes or until cheese is melted and bubbly
  8. Serve with a side of avocado slices